package com.bwie.system.run;

import com.bwie.system.service.ChargeStationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @ClassName: ChargeStationTypeRedis
 * @Description:
 * @Author: ZengFz
 * @Date: 2024/5/17 14:11:17
 */
@Component
@Slf4j
public class ChargeStationTypeSyncRedis implements ApplicationRunner {

    @Autowired
    private ChargeStationService chargeStationService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        chargeStationService.chargeStationTypeList();
        log.info("电站配置数据已同步到Redis");
    }
}
